
import { Pagination } from 'antd';
import styles from './index.less'
import { getPaging } from '@/services'
import { useEffect, useState } from 'react';


const Paging = () => {
  let [pagingList, setPagingList] = useState([])
  let [ListLength, setListLength] = useState(0)

  function onChange(pageNumber: any) {
    console.log('Page: ', pageNumber);
    let params = {
      t: '1652684940187',
      current: pageNumber,
      page: 10
    }
    getPaging(params).then((res) => {
      setPagingList(res.records)
    })
  }

  return (
    <div className={styles.paging}>
      <span>共 {8} 条</span><Pagination showLessItems showQuickJumper defaultCurrent={1} total={100} onChange={onChange} />
    </div>
  )
}

export default Paging